import request from '@/utils/request';

// 提现记录
export async function messageList(data) {
  const res = await request.post('/order/withdrawalList', data);
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
// 提现驳回

export async function withdrawalReject(data) {
  const res = await request.post('/order/withdrawalReject', data);
  if (res.data.code === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.message));
}
//提现通过
export async function withdrawalPass(data) {
  const res = await request.post('/order/withdrawalPass', data);
  if (res.data.code === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.message));
}
